import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * Write a description of class GameOverMenu here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class GameOverMenu extends World
{

    public String name;
    public GameOverMenu(String _name,int playerZeroScore,int playerOneScore)
    {    
        super(600, 400, 1); 
        name = _name;
        showText(name+"失败了捏", getWidth()/2, getHeight()/2);
        if(playerOneScore ==-1)
        {
            showText("玩家得分为"+playerZeroScore,getWidth()/2,getHeight()/3);
        }
        else
        {
            showText("玩家零得分为"+playerZeroScore+"\n玩家一得分为"+playerOneScore,getWidth()/2,getHeight()/3);
        }
        addObject(new Button_back(), getWidth()/2, getHeight()/2+40);
    }
}
